<div th:fragment="copy" xmlns:th="http://www.w3.org/1999/xhtml">
    <div th:each="carousel,state:${collect}" th:class="${state.count == 1 ? 'layui-this':''}" ><img th:src="${carousel.src}"></div>
</div>